<template>
  <view>
    <!-- 登录 -->
    <my-login v-if="!token"></my-login>
    <!-- 用户信息-->
    <my-userInfo v-else></my-userInfo>
  </view>
</template>

<script>
  import myMixin from '@/mixins/myMixin.js'
  import {
    mapState
  } from 'vuex'
  export default {
    mixins: [myMixin],
    computed: {
      ...mapState('user', ['token'])
    },
    data() {
      return {

      };
    }
  }
</script>

<style lang="scss">

</style>